<?php

/*
 * *	FILE NAME: 	urlmanager.php 	(Last Update: 24 NOVEMBER 2011)
 * * 	DESCRIPTION: Manage url format
 * *	 
 * *	LICENSE:	
 * *
 * *	@programmer	-
 * *	@license	
 * *	@version	Release: @1.0@
 * *	@link		http://www.domain.com/package/packagename
 * *	@since		File available since Release 1.0
 * *
 */
//if(Environment::isLocal()) return array();
return array(
// standard rules
    '/' => 'site/index',
    /*
    array('api/<controller>/list', 'pattern'=>'api/<controller:\w+>', 'verb'=>'GET'),
    array('api/<controller>/view', 'pattern'=>'api/<controller:\w+>/<id:\d+>', 'verb'=>'GET'),
    array('api/<controller>/update', 'pattern'=>'api/<controller:\w+>/<id:\d+>', 'verb'=>'PUT'),
    array('api/<controller>/delete', 'pattern'=>'api/<controller:\w+>/<id:\d+>', 'verb'=>'DELETE'),
     * /
     */
    //array('api/<controller>/create3', 'pattern'=>'api/<controller:\w+>', 'verb'=>'POST'),
    
    /* 				
      '<action:(login|logout|about)>' => 'site/<action>',
      '<controller:\w+>/<action:\w+>' => '<controller>/<action>',

      'posts' => 'post/list',
      'post/<id:\d+>' => 'post/read',
      'post/<year:\d{4}>/<title>' => 'post/read', */

    /* 'page/<sefurl>-<id:\d+>' => 'office/pages/store/index', */
    
    // site
    'about'=>'site/about',
    'contact-us'=>'site/contact',
    'privacy-policy'=>'site/privacy',
    'disclaimers'=>'site/disclaimers',
    'terms-of-use'=>'site/termsofuse',
    'response'=>'site/response',
    'error'=>'site/error',
    'maintenance'=>'site/maintenance',
    
    // user
    'user/login'=>'user/auth/login',
    'user/logout'=>'user/auth/logout',
    'user/registration'=>'user/auth/register',
    'user/account-recovery'=>'user/auth/recovery',
    'user/activation/<k_>'=>'user/auth/activate',
    'user/reset-activation/<k_:\w+>'=>'user/auth/resetactivation',
    'user/reset-<a:\w+>-password/<k>'=>'user/auth/setnewpassword',
    
    'user/<title>/<id:\d+>'=>'user/public/index',
    'user/my-shortlist'=>'user/shortlist/index',
    
    // social
    '<provider:\w+>/user-authentication'=>'user/social/authenticate',
    'user/social-logout'=>'user/social/logout',
    
    // EDM
    'user/unsubscribe-mailing'=>'edm/user/unsubscribe',
    
    /*
      array(
      'class' => 'application.components.CustomUrlRule',
      'routeRules' => array(
      ),
      'urlTemplate' => array(
      ),
      ), */


    //office
    //'http://office.domainname.com' => 'office/cms/index',
    //'http://office.domainname.com/login' => 'office/cms/login',
    /*
      'office' => 'office/auth/index',
      'office/login' => 'office/auth/login',
      'office/logout' => 'office/auth/logout',

      //news (office)
      'news' => 'office/news/cms/index',
      'news/add/form' => 'office/news/cms/addform',
      'news/update/<id:\d+>' => 'office/news/cms/editform',
      'news/publish/<id:\d+>' => 'office/news/cms/togglepublish',

      'news/<sefurl>-<page:\d+>' => 'office/news/store/list',
      'news/<date>/<sefurl>-<id:\d+>' => 'office/news/store/read',

      'product/catalog/<sefurl>-<page:\d+>' => 'office/product/store/catalog',
      'product/category/<sefurl>-<id:\d+>' => 'office/product/store/detail',
      'product/<categoryname>-<id:\d+>' => 'office/product/store/category', */
    'gii' => 'gii',
    'gii/<controller:\w+>' => 'gii/<controller>',
    'gii/<controller:\w+>/<action:\w+>' => 'gii/<controller>/<action>',
);
